package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum InvoiceTypeEnum {

	UNKNOWN("无"), VAT("增值税发票"), COMMERCIAL("普通发票");
	private final String paramType;

	private InvoiceTypeEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value  0:无/1:增值税发票/2:普通发票
	 * @return 同意状态枚举
	 */
	public static InvoiceTypeEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}

}
